<!--<include file="public+header" />-->

<!--{script}-->
function appealPass(id){
	Q.AjaxSend(Q.U('appeal/pass?id='+id),'ajax=1','',function(data,status){
		if(status==1){
			setTimeout("window.location.href=Q.U('appeal/index');",1000);
		}
	});
}

function appealBack(){
	$("#submit_button").attr("disabled", "disabled");
	$("#submit_button").val( 'update...' );
	Q.AjaxSubmit('appealAdd','<!--{:Q::U('appeal/reject?id='.$oAppeal->appeal_id)}-->','',complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val( '<!--<lang package='Template'>-->审核驳回<!--</lang>-->' );
	if(status==1){
		window.setTimeout(function (){window.location.href='<!--{:Q::U('badword/index')}-->'},1000);
	}
}

checkForm(appealBack);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current"><!--<lang package='Template'>-->用户申诉审核<!--</lang>--></a> <div class="breadcrumb_divider"></div> 
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li><!--<lang package='Template'>-->在这里你会看到用户申诉的详细信息<!--</lang>--></li>
				</ul>
			</div>
		</article>
		
		<article class="module width_full">
			<form id="appeal_form" method="post" action="<!--{:Q::U('appeal/reject?id='.$oAppeal->appeal_id)}-->" id="appealAdd" class="validate">
				<header><h3 class="tabs_involved"><!--{$oUser->user_name}--><!--<lang package='Template'>-->用户的申诉信息<!--</lang>--></h3>
					<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('appeal/index')}-->"><!--<lang package='Template'>-->用户申诉列表<!--</lang>--></a></li>
				</ul>
				</header>
				<div class="module_content">
					<table class="tablesorter" cellspacing="0">
						<tbody>
							<tr>
								<td width="160px"><!--<lang package='Template'>-->申诉真实姓名<!--</lang>--></td>
								<td><!--{$oAppeal->appeal_realname}--></td>
							</tr>
							<tr>
								<td><!--<lang package='Template'>-->申诉详细地址<!--</lang>--></td>
								<td><!--{$oAppeal->appeal_address}--></td>
							</tr>
							<tr>
								<td><!--<lang package='Template'>-->申诉身份证号<!--</lang>--></td>
								<td><!--{$oAppeal->appeal_idnumber}--></td>
							</tr>
							<tr>
								<td><!--<lang package='Template'>-->申诉Email<!--</lang>--></td>
								<td><!--{$oAppeal->appeal_email}--></td>
							</tr>
						</tbody>
					</table>
					<fieldset>
						<label for="appeal_prompt"><!--<lang package='Template'>-->驳回理由<!--</lang>--></label>
						<textarea id="appeal_reason" name="appeal_reason" rows="5" class="{required:true}"></textarea>
						<!--{if $oAppeal['appeal_reason']}-->
						<div style="padding:9px 9px 0px 10px;color:red;font-style:italic;"><!--{$oAppeal->appeal_reason}--></div>
						<!--{/if}-->
						<div class="description input_tips"><!--<lang package='Template'>-->若驳回申诉,请填写驳回理由.<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="submit" id="submit_button" name="submit_button" value="<!--<lang package='Template'>-->审核驳回<!--</lang>-->">
						&nbsp;<input type="button" id="appeal_pass" name="appeal_pass" onclick="appealPass(<!--{$oAppeal->appeal_id}-->);" value="<!--<lang package='Template'>-->审核通过<!--</lang>-->" class="alt_btn">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->